
<div id="leftColp1">
<h3>主机分类</h3>
<ul class="category">
<?php $cates = $_G['cache']->get('category'); foreach($cates as $cate) {if($cate['status'] && !ican('view_hidden_category') )continue;if($cate['pid'] !=0)continue; if(isset($type)){if($cate['type']!=$type)continue;}elseif($cate['type'] !=0) continue;?>        
              <li class="{if $class['cate'.$cate['cid']]}current-cat{else}cat-item{/if}"><a href="{url category.php?id=$cate[cid]}">{$cate['catename']}{if $cate['total']>0}({$cate['total']}){/if}</a></li>    
            <?php }?>
</ul>

<h3>友情链接</h3>
<ul class="category">
				{php $links = get_index_link();}
				{loop $links $link}
				<li><a href="{$link['url']}" title="{if $link['summary']}{$link['summary']}{else}{$link['title']}{/if}" target="_blank">{$link['title']}</a></li>
				{/loop}
				<li><a href="http://list.qq.com/cgi-bin/qf_invite?id=462c81e3f93c25f4d662aa3d81b57501884077a885887c7e" target="_blank">>>申请友情链接</a></li>
				</ul>            
</div>